headResult

inline suspend fun <T> HttpClient.headResult(urlString: String, noinline block: HttpRequestBuilder.() -> Unit = {}): Result<T>

Performs an HTTP HEAD request synchronously and returns the result as a Result of type T.

Return

Result representing the synchronous operation.

Parameters

urlString

The URL for the HEAD request.

block

Optional, allows customization of the request using HttpRequestBuilder.